import java.math.BigDecimal;
import java.util.Scanner;

public class poj1001 {
    public static void main(String[] args) {
        BigDecimal a;
        int b;
        Scanner scanner=new Scanner(System.in);
        while(scanner.hasNext()){
            a=scanner.nextBigDecimal();
            b=scanner.nextInt();
            String res=a.pow(b).stripTrailingZeros().toPlainString();
            if(res.charAt(0)=='0'){
                res=res.substring(1,res.length());
            }
            System.out.println(res);
        }
    }
}
